package client;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class CarnErbListener implements ActionListener {
	
	private GraphicButtonController creaSpecie;
	
	public void setButton(GraphicButtonController jb) {
		this.creaSpecie = jb;
	}
	
	@Override
	public void actionPerformed(ActionEvent e) {
		if (creaSpecie!= null) {
			creaSpecie.setInfo2(e.getActionCommand());
		}
	}

}
